<?php 
/* SVN FILE: $Id$ */
/* Topico Test cases generated on: 2009-03-30 05:03:46 : 1238404666*/
App::import('Model', 'Topico');

class TopicoTestCase extends CakeTestCase {
	var $Topico = null;
	var $fixtures = array('app.topico', 'app.user', 'app.tema', 'app.post');

	function startTest() {
		$this->Topico =& ClassRegistry::init('Topico');
	}

	function testTopicoInstance() {
		$this->assertTrue(is_a($this->Topico, 'Topico'));
	}

	function testTopicoFind() {
		$this->Topico->recursive = -1;
		$results = $this->Topico->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Topico' => array(
			'topico'  => 1,
			'user_id'  => 1,
			'tema_id'  => 1,
			'titulo'  => 'Lorem ipsum dolor sit amet',
			'descripcion'  => 'Lorem ipsum dolor sit amet',
			'fecha'  => '2009-03-30'
			));
		$this->assertEqual($results, $expected);
	}
}
?>